package com.asm.entity.sys;

import com.asm.entity.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;
import lombok.extern.slf4j.Slf4j;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author zhangyufu
 * @description 广告位标签类，继承于BaseEntity类
 * 用于存储广告位的一些标签信息
 * @date 2019/7/9
 */
@Slf4j
@Data
@Accessors(chain = true)
@Entity
@Table(name = "t_spot_tag")
public class SpotTag extends BaseEntity {

    /**
     * 广告位标签编号
     */
    @Column(name = "tag_id")
    private long tagId;

    /**
     * 广告位标签对应的广告位编号
     */
    @Column(name = "spot_id")
    private long spotId;

    /**
     * 标签类型
     */
    @Column(name = "tag_type", length = 10)
    private String tagType;

    /**
     * 标签信息
     */
    @Column(name = "type_inf", length = 30)
    private String tagInf;

}
